import { Entity, Column } from 'typeorm'
import { BaseEntity } from '../global'

@Entity('doc_toc')
export class DocToc extends BaseEntity {
    @Column({ length: 32 })
    tocid: string

    @Column({ default: '', length: 32 })
    docid: string

    @Column({ length: 32, default: '', comment: '父级' })
    parentid: string

    @Column({ length: 32, default: '', comment: '上一个' })
    previd: string

    @Column({ length: 32, default: '', comment: '下一个' })
    siblingid: string

    @Column({ length: 128, comment: '标题' })
    tocTitle: string

    @Column('int', { comment: '类型，0目录1文档' })
    tocType: number
}
